package com.ll.admin.dao;

import com.ll.admin.util.dao.IBaseDAO;
import com.ll.admin.vo.Member;

import java.util.List;
import java.util.Map;

public interface MemberMapper extends IBaseDAO<String,Member> {
    /**
     * 通过用户名、查询密码
     * @param name
     * @return
     */
    public Member findByNameReturnPassword(String name) ;

    /**
     * 通过邮箱查询密码
     * @param email
     * @return
     */
    public Member findByEmailReturnPassword(String email) ;

    /**
     * 通过姓名修改密码
     * @param map
     *  1. key=password、value=新密码
     *  2. key=mid、value=ID
     * @return
     */
    public boolean doEditPassword(Map<String,String> map) ;
}